<?php
$caption = BUtils::T('signup_lbl');
$this->pageTitle = Yii::app()->name . ' - ' . $caption;
?>
<div class="container prepend-top append-bottom">
	<div class="span-10 prepend-2">
		<div class="box_white append-bottom">
			<div class="biz-form margin">
				<h3><?php echo BUtils::T('yb_why_use_lbl'); ?></h3>
				<div class="tips"><?php echo BUtils::T('yb_why_use_eg'); ?></div>
				<ul class="line">
					<li>
						<b><?php echo BUtils::T('yb_why_use_t1'); ?></b>
						<br />
						<span><?php echo BUtils::T('yb_why_use_t1_eg'); ?></span>
					</li>
					<li>
						<b><?php echo BUtils::T('yb_why_use_t2'); ?></b>
						<br />
						<span><?php echo BUtils::T('yb_why_use_t2_eg'); ?></span>
					</li>
					<li>
						<b><?php echo BUtils::T('yb_why_use_t3'); ?></b>
						<br />
						<span><?php echo BUtils::T('yb_why_use_t3_eg'); ?></span>
					</li>
				</ul>
			</div>
		</div>
	</div>
	
	<div class="span-10 prepend-1 last">
		<div class="box_white">
		<div class="biz-form">
			<div class="margin">
				<h3><?php echo $caption; ?></h3>
			</div>
<?php
if (Yii::app()->user->hasFlash('signed')) {
	echo '<div class="fieldswrap"><div class="fields">';
	echo Yii::app()->user->getFlash('signed');
	echo '</div></div>';
} elseif (Yii::app()->user->hasFlash('error')) {
	echo '<div class="fieldswrap"><div class="fields">';
	echo Yii::app()->user->getFlash('error');
	echo '</div></div>';
} else {
	$form=$this->beginWidget('CActiveForm', array(
		'id'=>'signup-form',
		'enableClientValidation'=>true,
		'clientOptions'=>array(
			'validateOnSubmit'=>true,
		),
	));
?>
<div class="fieldswrap">
<div class="fields">
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'email'); ?></div>
		<div class="ipt">
			<?php echo $form->textField($model,'email', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'email'); ?>
		</div>
	</div>
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'password'); ?></div>
		<div class="ipt">
			<?php echo $form->passwordField($model,'password', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>
	</div>
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'password_repeat'); ?></div>
		<div class="ipt">
			<?php echo $form->passwordField($model,'password_repeat', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'password_repeat'); ?>
		</div>
	</div>
</div><!-- end of .fields -->
</div><!-- end of .fieldswrap -->

	<div class="margin actions">
		<?php echo CHtml::submitButton(BUtils::T('confirm_btn'), array('class' => 'button button-huge button-confirm')); ?>
		<?php echo CHtml::link('<span>I have an account already</span>', Yii::app()->user->loginUrl, array('class' => 'button button-huge button-thin button-compliment')); ?>
	</div>

<?php
	$this->endWidget();
}
?>

		</div><!-- end of <div class="biz-form"> -->
		</div>
	</div>
</div>